<template>
  <common-card title="累计销售额" value="￥ 32,111,110">
    <template>
      <div class="compare-wrapper">
        <div class="compare">
          <span>日同比</span>
          <span class="emphasize">7.99%</span>
          <div class="increase" />
        </div>
        <div class="compare">
          <span>月同比</span>
          <span class="emphasize">1.99%</span>
          <div class="decrease" />
        </div>
      </div>
    </template>
    <template v-slot:footer>
      <span>昨日销售额</span>
      <span class="emphasize">￥3,000</span>
    </template>
  </common-card>
</template>
<script>
import CommonCardMixin from "@/mixins/commonCardMixin";

export default {
  mixins: [CommonCardMixin]
};
</script>
<style lang="scss" scoped>
span {
  font-size: 12px;
}
.compare-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .compare {
    display: flex;
    align-items: center;
    margin-top: 3px;
    font-size: 12px;
  }
}
</style>
